NATTY_FLAGS=-I/usr/include/i386-linux-gnu/ -ccc-host-triple i486-linux-gnuwin32 -ccc-gcc-name /usr/bin/gcc-4.5	

export CXX=/Developer/Cocotron/2.0/LLVM/bin/clang++ $(NATTY_FLAGS)
export CC=/Developer/Cocotron/2.0/LLVM/bin/clang $(NATTY_FLAGS) -fcocotron-runtime -std=gnu99
export LD=gcc
export LIBRARY_COMBO=apple-apple-apple
export GNUSTEP_MAKEFILES=$(PWD)/gnustep-make-cocotron
export ROOT=$(PWD)

export LIBMACH=-L$(ROOT)/mach/obj -lmach
export LIBRINGO=-L$(ROOT)/ringo/obj -lringo
export LIBOBJC=-L$(ROOT)/objc/obj -lobjc
#Apple system libs
export LIBSYSTEM =-Wl,--no-undefined $(LIBMACH) $(LIBRINGO) -lm -ldl -lpthread

export FOUNDATION_FRAMEWORK=-L$(ROOT)/Foundation/Foundation.framework/ -lFoundation
export QUARTZCORE_FRAMEWORK=-L$(ROOT)/QuartzCore/QuartzCore.framework/ -lQuartzCore
export APPKIT_FRAMEWORK=-L$(ROOT)/AppKit/AppKit.framework/ -lAppKit
#something special, contains coregraphics and coretext
export APPLICATIONSERVICES_FRAMEWORK=-lApplicationServices -L$(ROOT)/ApplicationServices-opal/Source/ApplicationServices.framework



include $(GNUSTEP_MAKEFILES)/common.make

PACKAGE_NAME = Cocotron

SUBPROJECTS = mach ringo objc dyld preloader Foundation NSLogTool ApplicationServices-opal QuartzCore AppKit
include $(GNUSTEP_MAKEFILES)/aggregate.make
		
